<template>
    <div class="detail">
        <div class="top">
            <div class="title">{{ detailStore.hospitalData.hospital?.hosname }}</div>
            <div class="level">
                <img src="@/assets/赞.png" alt="">
                <span>{{ detailStore.hospitalData.hospital?.hostype}}</span>
            </div>
        </div>
        <div class="route">
            <div class="left">
                <img :src="'data:image/jpeg;base64,'+detailStore.hospitalData.hospital?.logoData" alt="">
            </div>
            <div class="right">
                <div class="">
                    <img src="@/assets/导航.png" alt="">
                </div>
                <div class="method">
                    {{  detailStore.hospitalData.hospital?.route }}
                </div>
            </div>
        </div>
        <div class="introduce">
            <div class="title"><p>医院介绍</p></div>
            <div class="content">
                <p>
                    {{ detailStore.hospitalData.hospital?.intro }}
                </p>
            </div>
        </div>
    </div>
</template>

<script setup lang="ts" name="Detail">
    import useDetailStore from "@/store/modules/hospitalDetail";

    let detailStore = useDetailStore();
</script>

<style scoped>
    .detail{
        margin: 10px 20px;
    }
    .top{
        display: flex;
        .title{
            font-size: 20px;
            font-weight: 900;
            height: 40px;
            text-align: center;
            line-height: 40px;
        }
        .level{
            margin-left: 20px;
            color: #7f7f7f;
            height: 40px;
            text-align: center;
            line-height: 40px;
            span{
                margin-left: 5px;
            }
        }
    }
    .route{
        display: flex;
        margin-top: 50px;
        .left{
            img{
                width: 80px;
                height: 80px;
            }
        }
        .right{
            flex: 1;
            display: flex;
            margin-left: 30px;
            .method{
                margin-left: 30px;
                color: #7f7f7f;
            }
        }
    }
    .introduce{
        .title{
            p{
            margin-top: 40px;
            font-size: 16px;
            font-weight: 700;
        }
        }
        .content{
            margin-top: 30px;
            p{
                color: #666666;
                font-size: 12px;
                line-height: 22px;
                text-indent: 24px;
                letter-spacing: 1px;
                font-family: Microsoft YaHei,serif;
            }
        }
    }
</style>